#ifndef TRANSLATE_H_H_H
#define TRANSLATE_H_H

#include "mstar_tv.h"
#include "tcl_mstar_atv_tv.h"
#include "tcl_mstar_dtv_tv.h"
#include "tcl_mtk_atv_tv.h"
#include "tcl_mtk_dtv_tv.h"
#include "tcl_usb.h"

class translate
{
public:
     translate();
//将累tcl_usb中存储的数据赋值为mstar_tv类，同时消去tcl_usb中对应的数据，减轻程序负担
     void pc_to_file(TCL_USB *usb,MSTAR_TV *ms_tv);
//将类ms_tv中存储的数据赋值给tcl_usb，但是并不能删除ms_tv中的数据
     void file_to_pc( MSTAR_TV *ms_tv,TCL_USB *usb);

    void convert_bin(const MSTAR_TV *tv);
    void bin_modify(MSTAR_TV *ms_tv);
private:
    BIN_FILE_HEADER bin_file;
};


#endif
